package com.groupbuying.storeinternal.dao;

import com.groupbuying.storeinternal.domain.StoreAccountDO;
import com.groupbuying.storeinternal.dto.forManage.StoreAccountDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商户表
 * @author yuwenxiaodong
 * @email yuwenxiaodong@126.com
 * @date 2019-03-22 11:54:48
 */
@Mapper
@Repository
public interface StoreAccountDao {

	StoreAccountDO get(String accountId);
	
	List<StoreAccountDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreAccountDO storeAccount);
	
	int update(StoreAccountDO storeAccount);
	
	int remove(String account_id);
	
	int batchRemove(String[] accountIds);

	/**
	 * 根据uuids查找
	 * @param params
	 * @return
	 */
	List<StoreAccountDO> getListByUuids(Map<String, Object> params);

	List<String> getAccountByMobile(String mobile);

	List<StoreAccountDTO> getStoreAndAgentName(Map<String, Object> map);

	/**
	 * 修改状态
	 */
	int updateFreezeStatus(Map<String, Object> map);

	/**
	 * 单独修改状态
	 * @param map
	 * @return
	 */
	int updateByProviderId(Map<String, Object> map);

	int countForMinList(Map<String, Object> map);
}
